/* ----------------------------------------------------------------------------
* File: skype_instance.h
*
* Desc: COM instance of Skype object
*
* Created: 03/05/2011, by Alexey Korshunov
* ---------------------------------------------------------------------------- */
#ifndef _SKYPE_INSTANCE_H_
#define _SKYPE_INSTANCE_H_

#include "main.h"
#include "skype_exception.h"
#include "skype_instance_event.h"


namespace SkypeInstance
{
	class InstanceManager
	{
	private:
		InstanceManager(const InstanceManager&);
		InstanceManager& operator=(const InstanceManager&);
	public:
		InstanceManager(DWORD WaitTime, EventHandler* Handler) throw(SkypeException::CommonException);
		~InstanceManager();
		SKYPE4COMLib::ISkypePtr GetObject();
	private:
		SKYPE4COMLib::ISkypePtr m_Skype;
	};
}


#endif // _SKYPE_INSTANCE_H_